home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 9 / FM Towns Free Software Collection 9.iso / t_os / tool / extdrv / src / makefile < prev    next >
Encoding:
Makefile  |  1994-11-16  |  1.3 KB  |  47 lines

  1. OBJS    = extdrv.obj disk.obj directry.obj file.obj \
  2.     fat.obj dir.obj buffer.obj buf_fat.obj buf_rdir.obj \
  3.     drive.obj misc.obj util.obj rbios.obj \
  4.     init.obj main.obj debug.obj dbgbios.obj
  5.  
  6. CFLAGS = -mt -M -DREDIR -UDEBUG -UDEBUG_FAT -UDEBUG_BUF -UDEBUG_ERR
  7. AFLAGS = -twocase -80386R -D REDIR
  8.  
  9. CC    = tcc
  10. ASM    = g:\386asm\exe\386asm
  11. LINKER    = g:\hc386\bin\386linkp
  12. RUN386    = d:\run386 -nocrt
  13.  
  14. all: extdrv.exe
  15.  
  16. extdrv.exe: $(OBJS) last.lib debug.lib
  17.     $(RUN386) $(LINKER) @files @libs -86 -exe extdrv.exe -publist byvalue
  18.  
  19. main.obj: main.c
  20.     $(CC) -c -mt -M -DREDIR -zAICODE -zC_ITEXT -zTIDATA -zR_IDATA -zBIBSS -zD_IBSS main.c
  21.  
  22. last.lib: last.obj
  23.     386lib last.lib -c last.obj
  24.  
  25. #last.obj: last.c
  26. #    $(CC) -c -mt -M -DREDIR -zAICODE -zC_ITEXT -zTIDATA -zR_IDATA -zBIBSS -zD_IBSS last.c
  27.  
  28. debug.lib: debug.obj dbgbios.obj
  29.     386lib debug.lib -c debug.obj dbgbios.obj
  30.  
  31. .c.obj:
  32.     $(CC) -c $(CFLAGS) $<
  33.  
  34. .asm.obj:
  35.     $(ASM) $(AFLAGS) $<
  36.  
  37. buffer.obj: extdrv.h dir.h buffer.h
  38. directry.obj: extdrv.h regdef.h dir.h buffer.h
  39. dir.obj: extdrv.h dir.h buffer.h
  40. fat.obj: extdrv.h
  41. disk.obj: extdrv.h regdef.h dir.h buffer.h
  42. drive.obj: extdrv.h disk.h
  43. file.obj: extdrv.h regdef.h dir.h file.h buffer.h
  44. init.obj: extdrv.h disk.h dir.h buffer.h
  45. misc.obj: extdrv.h
  46. subdir.obj: extdrv.h dir.h buffer.h
  47.